package com.chance.cc.crawler.development.command.script.ebrun;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/18 15:08
 * @Description
 *      亿邦动力网
 **/
public class EbrunCrawlerScript {

    private static String domainId = "ebrun";

    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.215",9599);

    public static void publishCrawlerNodeScript(){

        HttpPage page = scriptCommand.publishCrawlerScript2Consul(domainId);
        System.out.println("发布采集脚本：" + page.getRawText());
    }

}
